<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>HTMX</title>
    <script src="https://unpkg.com/htmx.org@2.0.2"></script>
  </head>
  <body>
      <form hx-post="/store">
        <input 
        id="title" 
        name="title" 
        type="text" 
        hx-post="/validate" 
        hx-trigger="change"
        hx-sync="closest form:abort"
         />
         <button type="submit">Submit</button>
      </form>
  </body>
</html>
